import openpyxl
# -*- coding: utf-8 -*-
import pdfplumber
with pdfplumber.open('算法规划.pdf') as pdf:
    for i in pdf.pages:
        print(i.extract_text())#提取内容
        print(f'-----第{i.page_number}页结束')